package com.vnaloha.common.dao;

import java.util.List;

import com.vnaloha.common.model.Document;

public interface DocumentDAO {
	
	/**
	 * Save document
	 * @param document
	 */
	public void save(Document document);
	
	/**
	 * Get list Document
	 * @return a list {@link Document}
	 */
	public List<Document> list();
	
	/**
	 * Get {@link Document} by id
	 * @param id this is document id
	 * @return a {@link Document}
	 */
	public Document get(Integer id);
	
	/**
	 * Delete document by id
	 * @param id this is document id
	 */
	public void delete(Integer id);
}
